package org.kzwl.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 张国伟/郭家恒
 * @since 2020-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cu_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论 自增id
     */
    @TableId(value = "cu_comment_id",type = IdType.AUTO)
    private Integer cuCommentId;

    /**
     * 评论对象 编号
     */
    @TableField("cu_ext_id")
    private Integer cuExtId;

    /**
     * 评论用户
     */
    @TableField("cu_user_id")
    private Integer cuUserId;

    /**
     * 分值
     */
    @TableField("cu_user_score")
    private Integer cuUserScore;

    /**
     * 评论内容
     */
    @TableField("cu_comment_text")
    private String cuCommentText;

    /**
     * 创建时间
     */
    @TableField("cu_comment_create_date")
    private LocalDateTime cuCommentCreateDate;

    /**
     * 评论父级
     */
    @TableField("cu_comment_parent")
    private Integer cuCommentParent;
}
